﻿namespace AccessControl.HardwareLibrary.FS84
{
    public enum Commands : byte
    {
        CheckFinger = 0x4B,
        SwitchPeripheral=0x11,
        CaptureImage = 0x49,
        DownloadRAWImage=0x44,
        DownloadCurrentSample=0x4d,
        GetFreeMemory=0x4f,
        Cancel = 0x4C,
        EraseAllTemplates = 0x45,
        ProcessCapturedFinger=0x50,
        Reboot=0xFF
    }

    public enum ErrorCodes:byte
    {
        RESULT_OK = 0x40,
        RESULT_NO_IMAGE = 0x41,
        RESULT_BAD_QUALITY = 0x42,
        RESULT_TOO_LITTLE_POINTS = 0x43,
        RESULT_EMPTY_BASE = 0x44,
        RESULT_UNKNOWN_USER = 0x45,
        RESULT_NO_SPACE = 0x46,
        RESULT_BAD_ARGUMENT = 0x47,
        RESULT_CRC_ERROR = 0x49,
        RESULT_RXD_TIMEOUT = 0x4A,
        RESULT_USER_ID_IS_ABSENT = 0x4D,
        RESULT_USER_ID_IS_USED_ALREADY = 0x4E,
        RESULT_VERY_SIMILAR_SAMPLE = 0x4F,
        RESULT_USER_SUSPENDED = 0x54,
        RESULT_UNKNOWN_COMMAND = 0x55,
        RESULT_INVALID_STOP_= 0x57,
        RESULT_HARDWARE_ERROR = 0x58,
        RESULT_BAD_TEST_OBJECT = 0x59,
        RESULT_BAD_FLASH = 0x5A,
        RESULT_TOO_MANY_VIP = 0x5B,
        RESULT_TOO_BIG_GROUP = 0x5D,
        RESULT_WINSOCK_ERROR = 0x60,
        RESULT_DEVICE_BUSY=0x70
    }

    public enum DevicePeripherals:int{
        Buzzer=0x00000001,
        LockOn=0x00000004,
        LED1=0x00000008,
        LED2=0x00000010
    }

}
